﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LightBox.master" AutoEventWireup="true" CodeFile="CallHistory.aspx.cs" Inherits="CallHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a id="current" href="CallHistory.aspx">Istoric apeluri</a></li>
<li><a href="UserChatHistory.aspx">Istoric conversaţii</a></li>
</ul>
</div>
   <br/>

   <asp:DataList ID="dlCalls"
           RepeatDirection="Vertical"
           RepeatLayout="FLow"
           runat="server">

         <AlternatingItemStyle BackColor="#EEF2FF" Width="100%" CssClass="bordered">
         </AlternatingItemStyle>

         <ItemTemplate>
                <span style="color: #9E9E9E;font-size: 12px;">
                    <%# DataBinder.Eval(Container.DataItem, "Timestamp", "{0:dd/MM/yy hh:mm:ss}")%>
                </span> 
                <span style="color:#05296E; font-weight:bolder;">
                <%# DataBinder.Eval(Container.DataItem, "PhoneCalled")%>
                </span>
                <br />
                <span style="padding-right:50px;">
                    Durata:  <b><%# Convert.ToInt16(DataBinder.Eval(Container.DataItem, "Duration"))/60 %>:<%# (Convert.ToInt16(DataBinder.Eval(Container.DataItem, "Duration")) % 60).ToString("00") %></b>
                </span>
                Cost: <b><%# DataBinder.Eval(Container.DataItem, "Cost")%></b>
         </ItemTemplate>

      </asp:DataList>
</asp:Content>

